<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>插槽</title>
    <script src="https://unpkg.com/vue@next"></script>
  </head>
  <body>
    <div id="Application">
        <my-container>组件内部</my-container>
    </div>
  </body>

  <script>
    const App= Vue.createApp({})
    const conationerComponent = {
        template:`<div style="border-style:solid;border-color:red;border-width:10px">
                <slot>默认的内容</slot>
            </div>`
    }
    App.component("my-container", conationerComponent);
    App.mount("#Application")
  </script>

</html>